<template>
    <div class="img_box">
        <img :src="invitation" />
    </div>
</template>

<script setup>
import {ref, onBeforeMount } from "vue"
import { inviteCode } from "@/config/api"
const invitation = ref('')
onBeforeMount(()=>{
    inviteCode().then(resp=>{
        console.log(resp,'inviteCode');
        invitation.value = resp
    })
    // invitation.value = process.env.VUE_APP_API_BASE_URL + '/app/invite/code'
})
</script>

<style lang="less" scoped>
.img_box{
    display: flex;
}
img{
    width: 100%;
    height: 100%;
}
</style>